html {
    background-color: #0a0a0a;
}
.body {
    background: linear-gradient(135deg, #141414 0%, #000000 100%);
    color: #e8f4f8;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', sans-serif;
    margin: 0;
    padding: 0;
}

#content {
  width: 100%;
  min-height: 100vh;
}

.flex-container-row {
    /* We first create a flex layout context */
    display: flex;
    flex-flow: row nowrap;
    
    /* Then we define how is distributed the remaining space */
    justify-content: space-around;
    align-items: center;
    
    padding: 0;
    margin: 0;
    list-style: none;
}

.flex-container-col {
    /* We first create a flex layout context */
    display: flex;
    flex-flow: column nowrap;
    
    /* Then we define how is distributed the remaining space */
    justify-content: space-evenly;
    align-items: center; 
    
    padding: 0;
    margin: 0;
    list-style: none;
}

#mobile-nav-button {
    display: none;
}
#mobile-nav-menu {
    display: none;
}

#nav-sidebar {
    align-self: normal;
    justify-content: flex-start;
    align-items: flex-start;
    top: 50vh;
    max-height: 50vh;
    width: 10%;
    min-width: 3.125rem;
    position: -webkit-sticky;
    position: sticky;
    flex-shrink: 17;
    z-index: 100;
}

.nav-sidebar-item {
    color: #66b3ff;
    text-align: left;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.6em 1em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border-left: 2px solid transparent;
    letter-spacing: 0.5px;
}

.nav-sidebar-item:hover {
    color: #ffffff;
    border-left: 2px solid #3d99dc;
}

.nav-sidebar-item.active {
    color: #ffffff;
    font-size: 1.1rem;
    border-left: 2px solid #3d99dc;
    background: linear-gradient(90deg, rgba(61, 153, 220, 0.15) 0%, transparent 100%);
}

#blog-section {
    height: fit-content; /** Always takes up the entire screen on page landing */
    margin-top: 30vh;
    margin-bottom: 10vh;
    width: 100%;
}

#hero {
    display: flex;
    flex-flow: column nowrap;
    
    /* Then we define how is distributed the remaining space */
    justify-content: center;
    
    flex-grow: 3;

    width: 70%;
    padding: 0;
    padding-inline-start: 2%;
    list-style: none;
}

#name {
    background: linear-gradient(135deg, #66d3fa 0%, #3d99dc 50%, #2565ae 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 4rem;
    font-weight: 700;
    margin: 0;
    margin-inline-start: 3%;
    letter-spacing: -1px;
}

.icon-logo {
    color: rgb(126, 201, 245);
    width: 2.5rem;
    height: 2.5rem;
    transition: all 0.3s ease;
}

.icon-logo:hover {
    color: #ffffff;
    transform: translateY(-2px);
}

#blurb {
    width: 37rem; /** rem depends on the user's root font size, which tracks with the <h1> name */
    margin-inline-start: calc(3% + .3rem);
    color: #b8d9f0;
    font-size: 1.15rem;
    line-height: 1.7;
    font-weight: 400;
}

#links {
    margin-top: .6rem;
    width: max-content;
    margin-inline-start: calc(3% + .3rem);
    justify-content: flex-start;
    gap: .625rem;
}

h1 {
    font-size: 5rem;
    margin: 0;
}

h3 {
    font-size: 1.875em;
    margin: 0;
    padding: 0;
}

h4 {
    font-size: 1.125em;
    margin: 0;
    padding: 0;
}

ul {
    padding: 0;
    margin: 0;
    width: auto; /* or a specific width */
    text-align: center;
}

#posts {
    display: grid;
    width: 100%;
    justify-content: space-evenly;
    margin-inline-start: 4.4%;
    margin-inline-end: 4.4%;
    grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
    gap: 3vh 1.5vw; /* row-gap column gap */
    /* flex-grow: 3; */

}

@media screen and (max-width: 1135px) and (min-width: 1035px) {
    .nav-sidebar-item.active {
        font-size: large;
    }
}

@media screen and (max-width: 1034px) {    
    #nav-sidebar {
        display: none;
    }

    #mobile-nav-button {
        display: flex;
        flex-direction: column;
        cursor: pointer;
        background: transparent;
        border: none;
        position: fixed;
        top: 2vh;
        right: 2vw;
        padding: 10px;
        z-index: 100;
    }

    .bar {
        width: 25px;
        height: 3px;
        background-color: #66b3ff;
        margin: 3px 0;
        transition: all 0.3s ease;
    }
    
    .mobile-nav-item {
        text-decoration: none;
        font-size: 1.2rem;
        margin-top: 5vh;
        font-weight: 600;
    }

    a {
        all: unset;
        cursor: pointer;
    }

    li {
        list-style-type: none;
        margin: 0;
        padding: 0; 
    }

    #mobile-nav-menu {
        display: none;
        position: fixed;
        top: 0;
        right: 0;
        width: 40vw;
        height: 100vh;
        background: rgba(21, 21, 22, 0.95);
        padding-top: 3vh;
        z-index: 90;
    }
    
    #mobile-nav-menu.active {
        display: block;
    }

    /* Animate to X */
    #mobile-nav-button.active .bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    #mobile-nav-button.active .bar:nth-child(2) {
        opacity: 0;
    }

    #mobile-nav-button.active .bar:nth-child(3) {
        transform: rotate(-45deg) translate(8px, -7.5px);
    }

    /* Content */

    #blog-section {
        flex-flow: column-reverse nowrap;
        justify-content: center;
        align-content: center;
        margin-top: 20vh;
    }
    
    #hero {
        display: flex;
        flex-flow: column nowrap;
        
        /* Then we define how is distributed the remaining space */
        justify-content: center;
        
        flex-grow: 3;
    
        width: 100%;
        height: 70%;
        padding: 0;
        padding-inline-start: 4.4%;
        list-style: none;
    }
    
    #name {
        color: rgb(126, 201, 245);
        margin-inline-start: 3%;
    }
    
    .icon-logo {
        color: rgb(126, 201, 245);
        width: 2.5rem;
        height: 2.5rem;
    }
    
    #blurb {
        width: 80%; /** rem depends on the user's root font size, which tracks with the <h1> name */
        margin-inline-start: calc(3% + .3rem);
    }
    
    #posts {
        display: grid;
        width: 90%;
        justify-content: space-evenly;
        grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
        gap: 2vh 5vw; /* row-gap column gap */
        /* flex-grow: 3; */
    
    }
    
    h1 {
        font-size: 4rem;
        margin: 0;
    }
    
    h3 {
        font-size: 1.3em;
        margin: 0;
        padding: 0;
    }
    
    h4 {
        font-size: 1.125em;
        margin: 0;
        padding: 0;
    }
    
    ul {
        padding: 0;
        margin: 0;
        width: auto; /* or a specific width */
        text-align: center;
    }

    footer {
        margin-top: 2vh !important;
        font-size: 0.7rem;
    }
}